home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 24
/
Aminet 24 (1998)(GTI - Schatztruhe)[!][Apr 1998].iso
/
Aminet
/
comm
/
cnet
/
CDFront.lha
/
CDFront.rexx
< prev
Wrap
OS/2 REXX Batch file
|
1998-01-03
|
3KB
|
103 lines
/* CDFront.Rexx. */
/* -------------- */
/* This is rexx-door for CNet */
/* that can be used as a front-end */
/* for CDAxe or other CD-ROM doors */
/* It provides the user with a menu*/
/* from which he/she can choose a */
/* CD to access. */
/* Version : 1.0 */
/* Date : 3-jan-1998 */
/* Author : Leo Poleij */
/* email: lmpoleij@cybercomm.nl */
/* USS Amiga BBS: ++31-318-430201 */
VStr='1.0' /* version string */
/* Open rexxsupport-library */
if ~show('L','rexxsupport.library') then
call addlib('rexxsupport.library',0,-30,0)
options results
/* Available CD-ROMs with descriptions */
/* Edit this to reflect your situation */
name.1 = "Aminet4:aminet" ; desc.1 = "Aminet 4"
name.2 = "Aminet5:aminet" ; desc.2 = "Aminet 5"
name.3 = "Aminet6:aminet" ; desc.3 = "Aminet 6"
name.4 = "Aminet7:aminet" ; desc.4 = "Aminet 7"
name.5 = "Aminet9:aminet" ; desc.5 = "Aminet 9"
name.6 = "Aminet10:aminet" ; desc.6 = "Aminet 10"
name.7 = "Aminet11:aminet" ; desc.7 = "Aminet 11"
name.8 = "Aminet12:aminet" ; desc.8 = "Aminet 12"
name.9 = "Aminet13:aminet" ; desc.9 = "Aminet 13"
name.10 = "Aminet14:aminet" ; desc.10 = "Aminet 14"
name.11 = "Aminet20:aminet" ; desc.11 = "Aminet 20"
name.12 = "tfb3_0:" ; desc.12 = "Star Trek CD-ROM"
name.13 = "anonymous:" ; desc.13 = "Fabulous females 2"
ncd=13 /* variable to hold the number of CD's */
/* End of list */
/* check availability of CD-ROMs */
DO i=1 to ncd
if showlist('V',upper(left(name.i,index(name.i,":")-1)))="1" THEN
avail.i='c5}*c3}'
ELSE
avail.i=' '
end
List:
/* Put the list on screen */
CLS
transmit CENTER('c7}CD-ROM frontend v'VStr', by Leo Poleij. (C)1998 BoPoSoft',79)
newline
transmit CENTER('c1}List of available CD-ROMs (* = online now!)',79)
transmit CENTER('Ask the sysop if the CD-ROM you want is not online',79)
newline
duallist=ncd%2
if ncd//2=1 then duallist=duallist+1
sendstring 'c3}'
do i=1 TO duallist
j=i+duallist
if i<10 THEN cn1=10
else cn1=9
if j<10 THEN cn2=40
else cn2=39
column1=copies(' ',cn1)i'. 'avail.i' 'desc.i
if j<=ncd THEN
column2=copies(' ',cn2-length(column1))j'. 'avail.j' 'desc.j
else
column2=''
transmit column1||column2
end
/* Get some input */
newline
sendstring 'Your choice (Enter to quit) : '
receive
choice=result
/* Process input */
if choice = '' THEN signal endofscript
if choice < 1 | choice > ncd THEN signal List
if avail.choice = '*' THEN
transmit 'Accessing 'desc.choice'. Please wait...'
transmit '#2pfiles:CDAxe/CDAxe 'name.choice'}'
signal List
else
signal List
end
endofscript:
exit
/* The End */